package com.feicheng.controller.shop.wx.fuwu.client;


import com.feicheng.common.result.ResultInfo;
import com.feicheng.controller.BaseController;
import com.feicheng.persistence.entity.CardType;
import com.feicheng.persistence.service.ICardTypeService;
import com.feicheng.service.IFClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.transform.Result;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-02
 */
@RestController("/wx/s/client/card-type")
@RequestMapping("/wx/s/client/card-type")
public class CardTypeController extends BaseController {

    @Autowired
    IFClientService fClientService;

    @GetMapping("/all")
    public ResultInfo allCardType() {
        CardType cardType = new CardType();
        cardType.setDFlg(false);
        cardType.setStatu(true);
        return fClientService.getCardTypes(cardType);
    }
}
